package com.clkj.xiuzheng.dao;

import com.clkj.xiuzheng.pojo.IntoStock;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

@Repository
public interface InStockMapper extends Mapper<IntoStock> {
    @Insert("insert into t_cl_intoStock  values (#{handelName},#{intoDate},#{productNum},#{productTotal}," +
            "#{applyStatus},#{companyId},#{intoNote})")
    @Options(useGeneratedKeys = true, keyProperty = "intoId")
    void addIntoStock(IntoStock intoStock);
}
